dropdown: Style fixups
authorMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jun 2020 14:23:39 +0000 (10:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jun 2020 14:25:31 +0000 (10:25 -0400)
Make the dropdown popover have a .menu style class,
and add padding to the rows in the popover. Also,
make the popover left-aligned with the button.

gtk/theme/Adwaita/_common.scss
gtk/ui/gtkdropdown.ui

index d2ed052b06a83c59c20b6651aec72bb225070466..dca44ed3510bc49256f0054edf26ea4a768f1392 100644 (file)
@@ -1173,6 +1173,10 @@ combobox {
   }
 }
 
+dropdown > popover listview > row {
+  padding: 6px;
+}
+
 // the combo is a composite widget so the way we do button linking doesn't
 // work, special case needed. See
 // https://bugzilla.gnome.org/show_bug.cgi?id=733979
index fdd84ddaf2fa2cec31a1be2c2735c5c48c98e36c..562366355375464563996571cf85c23ec87a70a2 100644 (file)
     <child>
   <object class="GtkPopover" id="popup">
     <signal name="closed" handler="popover_closed"/>
+    <property name="halign">start</property>
     <property name="has-arrow">0</property>
     <property name="autohide">1</property>
+    <style>
+     <class name="menu"/>
+    </style>
     <child>
       <object class="GtkBox">
         <property name="orientation">vertical</property>